<?php

class IndexController extends Zend_Controller_Action
{
    public function indexAction()
    {
    	if(Core_Business_Rule::ADMIN == $this->_helper->Acl->getUser()->getRole()) {
    		$trainings = Core_Business_Training::getTraining(array('DATEDIFF(CURDATE(),created) BETWEEN 0 AND ?'=>3));
    		$this->view->newtrainings = $trainings;
    	}
    }
}

